package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.AfterSaleBackMoney;
import com.example.demo.entity.AfterSaleBackMoney2;
import com.example.demo.repository.AfterSaleBackMoneyRepository2;
@Service
public class AfterSaleBackMoneyService2 extends BaseService<AfterSaleBackMoney2, Integer>{
	
	@Autowired
	private AfterSaleBackMoneyRepository2 r2;
	
	public List<AfterSaleBackMoney2> findByAftersalebackmoney(AfterSaleBackMoney sale1) {
		return r2.findByAftersalebackmoney(sale1);
	}

	public AfterSaleBackMoney2 findByMonthAndYears(Integer month, Integer years) {
		return r2.findByMonthAndYears(month,years);
	}

	public List<AfterSaleBackMoney2> findByAftersalebackmoneyId(Integer id) {
		return r2.findByAftersalebackmoneyId(id);	
	}

}
